|
|
|
|
|
|
|
Try using this control by adding it to the demo form and then executing the application. Then, when you click the arrow button of the control, the MonthView calendar will be displayed as shown in Figure 15.14. |
|
|
|
|
|
|
|
|
Figure 15.14.
Selecting a date from the MonthView
calendar that is displayed. |
|
|
|
|
|
|
|
|
The best feature of these controls is that you can bind them to a date field in the database recordset. This provides a codeless method of inputting and displaying date information from a database. |
|
|
|
|
|
|
|
|
In this chapter, you learned what OLE drag and drop is really about and how to add this functionality to your application to give the user another way of accessing the information in the database. By enabling the user to drag an entry item to an icon to request some type of action, you are adding an easier way to work with the application. |
|
|
|
|
|
|
|
|
Q What is the difference between the standard drag and drop and the OLE drag and drop? |
|
|
|
|
|
|
|
|
A OLE drag and drop is used to move information between any two ActiveX controls or between two OLE-enabled applications. |
|
|
|
|
|
|
|
|
Q What are the two ways of using OLE drag and drop? |
|
|
|
|
|
|
|
|
A OLE drag and drop can be an automatic process where it is supported or a manual process when you need complete control over the drag process. |
|
|
|
|
|
|
|
|
Q How do I know if a control supports OLE drag and drop? |
|
|
|
|
|
|
|
|
A The best way to see if a control supports OLE drag and drop is by looking at its property list for the OLEDragMode and OLEDropMode properties. If they are present, the control supports OLE drag and drop. |
|
|
|
|
|